import { axios } from '~/plugins/axios';

// 根据id 查询项目详情
export const getProjectInfo = (params?: any) => axios({
  method: 'get',
  url: `/project/detail/${params as string} `,
}) as Promise<any>;

// 整改通知 2     已阅 1
export const handleRectify = (params?: any) => axios({
  method: 'post',
  url: '/action/project_audit',
  data: params,
}) as Promise<unknown>;

// suspend 下架 status 0
export const handleSuspend = (params?: any) => axios({
  method: 'post',
  url: '/project/shelve',
  data: params,
}) as Promise<unknown>;
